package org.lzfto.flink.demo.utils;

import org.lzfto.flink.demo.common.result.PubResult;

import com.alibaba.fastjson2.JSON;

public class WsUtil {
	
	/**
	 * 构建一个结构类型为PubResult<String>的JSON数据
	 * @param message
	 * @return
	 */
	public static String buildMessage(String message) {
		PubResult<String> result=PubResult.ok("成功",message);
		return JSON.toJSONString(result);
	}
}
